import { ApiProperty, IntersectionType, PartialType } from '@nestjs/swagger';

class RequiredDto {
  @ApiProperty({
    description: '姓名',
  })
  name: string;
}

class PartialDto {
  @ApiProperty({
    description: '描述',
  })
  description: string;
}

export class RolesDto extends IntersectionType(
  RequiredDto,
  PartialType(PartialDto),
) {}
